<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>众秀众筹-专注贷款，小额贷款，信用贷，车贷，房贷，P2P理财，众筹的网站</title>
	<meta name="Keywords" content="贷款，贷款返利，小额贷款，信用贷，车贷，房贷，众筹，众秀众筹，股权众筹，P2P,P2P理财" />
	<meta name="Description" content="众秀众筹提供贷款，信用贷，小额贷款，个人贷款，P2P,P2P理财，股权众筹最新资讯。" />
	<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
	<meta name="renderer" content="webkit"/>
	<meta name="baidu-site-verification" content="ylmBUezGTg" />
	<meta name="baidu-site-verification" content="EgGg28iJBs" />
	<meta name="sogou_site_verification" content="GcRuczUnQg"/>
              <meta name="baidu-site-verification" content="69a3b2c459c09891ea825a7280292d27"/>
	<link rel="stylesheet" href="<%=path%>/css/bootstrap/3.3.5/css/bootstrap.min.css" />
	<link rel="stylesheet" href="<%=path%>/css/cz.css" />

	<script src="<%=path%>/js/jquery-1.11.0.min.js"></script>

	<script src="<%=path%>/js/slider.js"></script>
	<script src="<%=path%>/js/common.js"></script>
</head>
<body class="gray-bg">
<jsp:include page="/views/commons/header.jsp"></jsp:include>
<!-- 焦点图 -->
<div id="index_slides"></div>
<div class="container page-single">
	<div class="col-md-9">
		<div class="box white-bg">
			<form id="news_choose_form" action="javascript:void(0)">
			<div class="project-tit3 clearfix">
				<div class="news-li">
					<a class='curr' href="javascript:setHiddenValue('news_classify_hid','');queryNewsList(1)">最新动态</a>
					<a href="javascript:setHiddenValue('news_classify_hid','1');queryNewsList(1)">影视众筹</a>
					<a href="javascript:setHiddenValue('news_classify_hid','2');queryNewsList(1)">P2P</a>
					<a href="javascript:setHiddenValue('news_classify_hid','3');queryNewsList(1)">股权众筹</a>
					<a href="javascript:setHiddenValue('news_classify_hid','4');queryNewsList(1)">餐饮众筹</a>
					<a href="javascript:setHiddenValue('news_classify_hid','5');queryNewsList(1)">法律</a>
					<a href="javascript:setHiddenValue('news_classify_hid','6');queryNewsList(1)">行业数据/报告</a>
				</div>
				<input type='hidden' name='newsClassify' id='news_classify_hid'/>
			</div>
			<input type='hidden' name='newsType' id='news_type_hid' value='1'/>
			</form>
		</div>
		<div id="index_news_list_div">
			<c:choose>
			<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
			<div class="box white-bg">
				<c:forEach var="news" items="${dataList}" varStatus="index">
				<dl class="zxListT">
					<dt>
						<a title="${news.newsTitle}_${news.newsFrom}" href="<%=path %>/uncheck/news/view/${news.newsId}" target="_blank">
							<img src="<%=path%>/uncheck/pictures/servlet?id=${news.newsPicture}" alt="${news.newsTitle}_${news.newsFrom}" width="236" height="160" >
						</a>
					</dt>
					<dd class="title">
						<a title="${news.newsTitle}_${news.newsFrom}" href="<%=path %>/uncheck/news/view/${news.newsId}" target="_blank">${news.newsTitle}</a>
					</dd>
					<dd class="keyword">
						<fns:keyWords keyWords="${news.newsLabel}"></fns:keyWords>
					</dd>
					<dd class="content">${news.newsDigest}</dd>
					<dd class="author">
						<i class="sym sym-user"></i>
						<a>${news.newsAuthor}</a>
						<span class="zxdata">
							<span><fmt:formatDate value='${news.publishTime}' pattern='yyyy-MM-dd'/></span>
							<!-- <span class="zczj_heart">
								<i class="sym sym-appreciate"></i>
								<i class="zan_num">${news.discussNum}</i>
							</span> -->
						</span>
					</dd>
				</dl>
				</c:forEach>
			</div>
			<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryNewsList"></p:pagination>
			</c:when>
			<c:otherwise>
			<div  class="box white-bg">
				<div class="juti_list">
					<li>暂无记录</li>
				</div>
			</div>
			</c:otherwise>
			</c:choose>
		</div>
	</div>
	<div class="col-md-3 c-side">
		<div class="o-widget c-related-activity">
			<div class="c-related-articles__headline">
				<a href="<%=path%>/views/activity/activity_list.jsp" class="pull-right f12">更多</a>
				推荐活动
			</div>
			<ul class="topic-feed-list clearfix" id="activity_list_div">
				<c:if test="${!empty activityList && fn:length(activityList) ne 0}">
					<c:forEach var="activity" items="${activityList}" varStatus="index">
						<li>
							<a href="<%=path %>/uncheck/activity/view/${activity.activityId}" target="_blank" title="${activity.activityName}">
								<img src="<%=path%>/uncheck/pictures/servlet?id=${activity.activityPicture}" >
								<p>
									<fns:encodes type="5" value="${activity.activityName}"></fns:encodes> 
								</p>
								<div class="time">
									<div class="author clearfix">
										<!-- <img src="http://7lrzbv.com2.z0.glb.qiniucdn.com/de00396d-70a4-43e3-8d19-33345504cd5f" alt="" class="header">	 -->		
										<div class="name pull-left f12">
											${activity.activityOrganizers}
										</div>
										<div class="f12 pull-right">
											<span class="sym sym-time"></span>
											<fmt:formatDate value="${activity.activityBeginTime}" pattern="MM-dd HH:mm"/>
										</div>
									</div>					
								</div>
								<div class="tpft">
									<c:choose>
									<c:when test="${activity.activityType==1}">
										<span class="label label-info pull-left">线下活动</span>
										<div class="pull-left ml5 txtaddr">
										${activity.activityProvince}${activity.activityCity}${activity.activityAddress}</div>
									</c:when>
									<c:when test="${activity.activityType==2}">
										<span class="label label-info pull-left">线上直播</span>
										<div class="pull-left ml5 txtaddr">
											<a href="${activity.activityUrl}">${activity.activityUrl}</a>
										</div></c:when>
									</c:choose>
								</div>
							</a>
						</li>
					</c:forEach>
				</c:if>
			</ul>
		</div>

		<div class="o-widget  c-related-activity c-related-data">
			<div class="c-related-articles__headline">				
				<a href="<%=path%>/views/data/data_list.jsp">平台成交</a>
			</div>
			<div class="tab-content c_666" id="data_list_view">
				<div class="tab-pane in active">
					<table class="table table-hover">
						<thead>
							<tr>
								<th align="center">平台名<br></th>
								<th align="center">成交金额/万</th>
								<th align="center">成功项目数</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="platformData" items="${platformDataList}" varStatus="index">
								<tr>
									<td align="center">${platformData.platformName}</td>
									<td align="center">${platformData.totalAmount/10000}万元</td>
									<td align="center">${platformData.tradeCount}</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<div class="o-widget c-subscript-widget">
			<h1 class="c-subscript-widget-header">
				<div class="c-subscript-widget-header__emphasize">我要投稿</div>
				<div class="c-subscript-widget-header__helper">I want to contribute</div>
			</h1>

			<div class="text-center">
				<i class="sym sym-cuncaogao text-info" style="font-size:120px"></i>
			</div>
			<a href="<%=path %>/check/news/toInsert" class="btn btn-primary btn-block">我要投稿</a>
			<div class="mt10 text-center">
				<a href="<%=path %>/views/about/tgxz.jsp">查看征稿规则</a>
			</div>
		</div>
	</div>
			<div class="col-md-12 hidden " >
			<div class="links-list">
				<dl>
					<dt>
						<span>友情链接</span>
					</dt>
					<dd class="playLogo clear" style="display:block;">
	<!-- link_item -->					
<a href="http://www.heshengjinfu.com" target="_blank" rel="nofollow">
	禾胜金服
</a>
	<!-- link_item end -->

					</dd>
				</dl>

			</div>

		</div>

</div>
<jsp:include page="/views/commons/footer.jsp"></jsp:include>
</body>
<script type="text/javascript">
$(document).ready(function(){
	queryBanner();
});

function queryBanner(){
	$.ajax({
		url : path + "/uncheck/banner/list",
		type : "get",
		dataType : "html",
		success : function(data)
		{
			$("#index_slides").html(data);
		},error:function(){
			layer.msg("服务器网络繁忙",{icon: 2});
		}
	});
}

function queryNewsList(pageNo){
	var queryData=$("#news_choose_form").serialize();
	
	if(queryData==null||queryData==""){
		queryData="pageNo="+pageNo;
	}else{
		queryData=queryData+"&pageNo="+pageNo;
	}
	$.ajax({
		url : path + "/uncheck/news/list",
		type : "get",
		dataType : "html",
		data :queryData,
		success : function(data)
		{
			$("#index_news_list_div").html(data);			
		},error:function(){
			layer.msg("服务器网络繁忙",{icon: 2});
		}
	});
}
</script>
</html>